package com.fengye.middleware.rabbitmq.spring.event.domain;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;

import javax.xml.transform.Source;
import java.io.Serializable;

/**
 *
 * @author sky
 * @date 2021年06月09日 10:11 上午
 */
@Getter
@Setter
@ToString
public class LoginEvent extends ApplicationEvent implements Serializable {
    private String username;
    private String loginTime;
    private String ip;

    // public LoginEvent(){}

    public LoginEvent(Object source) {
        super(source);
    }

    public LoginEvent(Object source, String username, String loginTime, String ip) {
        super(source);
        this.username = username;
        this.loginTime = loginTime;
        this.ip = ip;
    }

}
